<template>
  <div>
    <el-button size="small" type="primary" @click="click">查看</el-button>
    <el-dialog
      :modal-append-to-body="false"
      :visible.sync="dialogVisible"
      fullscreen
      :before-close="handleClose"
    >
      <XDFullScreenA :config="config" :data="data">
        <!-- <template v-slot:indexMeasureTable="slotData">
          <index-measure-table :data="slotData.data"></index-measure-table>
        </template> -->
      </XDFullScreenA>
    </el-dialog>
  </div>
</template>
<script>
//import { typeJson } from "@/components/kits/plugins/config";
// import indexMeasureTable from "./indexMeasureTable";
export default {
  props: ["data"],
  data() {
    return {
      dialogVisible: false,
      config: [
        {
          label: "风险研判详情",
          ruleForm: [
            {
              label: "研判类型",
              prop: "name",
              value: "",
            },
            {
              label: "研判内容",
              prop: "judgmentContent",

              value: "",
            },
            {
              label: "研判依据",
              prop: "judgmentBasis",
              addEditHidden: true,
              value: "",
            },
            {
              label: "研判方法",
              prop: "judgmentWay",
              value: "",
              addEditHidden: true,
            },
             {
              label: "L值",
              prop: "ivalue",
              value: "",
            },
             {
              label: "E值",
              prop: "evalue",
              value: "",
            },
             {
              label: "C值",
              prop: "riskValue",
              value: "",
            },


            {
              label: "风险值",
              prop: "totalValue",
              value: "",
            },
            // {
            //   label: "研判情况",
            //   prop: "judgmentSituation",
            //   value: "",
            // },
            {
              label: "研判情况",
              prop: "judgmentResults",
              value: "",
            },
            

            {
              label: "研判结果",
              prop: "judgmentResult",
              value: "",
            },
            {
              label: "等级名称",
              prop: "level",
              value: "",
            },
                {
              label: "管控措施",
              prop: "controlMeasures",
              value: "",
            },
                {
              label: "备注",
              prop: "remark",
              value: "",
            },
                {
              label: "等级",
              prop: "levelName",
              value: "",
            },

           
          ],
          ruleFormData: {},
          disabled: true,
        },
      ],
    };
  },
  created() {
    console.log(this.data);
  },
  methods: {
    handleClose() {
      this.dialogVisible = false;
    },
    click() {
      this.dialogVisible = true;
    },
  },
  components: {
    // indexMeasureTable,
  },
};
</script>
